package com.nativetalk.dao;

import com.nativetalk.bean.live.TdNtLivePictureDelete;
import com.nativetalk.bean.live.TdNtLivePictureInsert;
import com.nativetalk.bean.live.TdNtLivePictureList;

import java.util.List;

/**
 * Created by lizhun on 16/5/11.
 */
@MyBatisRepository
public interface TdNtLivePictureDao {
    /**
     * @Purpose  添加直播课程(图片)
     * @version  2.1
     * @author   lizhun
     * @param    tdNtLivePictureInsert
     * @return   void
     */
    public void insertTdNtLivePicture(TdNtLivePictureInsert tdNtLivePictureInsert);
    /**
     * @Purpose  查找课程的所有可现实图片
     * @version  2.1
     * @author   lizhun
     * @param    live_cou_id
     * @return   List<TdNtLivePictureList>
     */
    public List<TdNtLivePictureList> findTdNtLivePictureByLiveId(int live_cou_id);
    /**
     * @Purpose  更新直播课程(改为不可用)
     * @version  2.1
     * @author   lizhun
     * @param    tdNtLivePictureDelete
     * @return   void
     */
    public void updateTdNtLivePictureDelete(TdNtLivePictureDelete tdNtLivePictureDelete);
    /**
     * @Purpose  查找直播课程图片数量
     * @version  2.1
     * @author   lizhun
     * @param    live_cou_id
     * @return   Integer
     */
    public Integer findTdNtLivePictureByLiveIdSize(int live_cou_id);
    /**
     * @Purpose  查找直播课程图片最大排序
     * @version  2.1
     * @author   lizhun
     * @param    live_cou_id
     * @return   Integer
     */
    public Integer findTdNtLivePictureByLiveIdMaxSort(int live_cou_id);
}
